{if !$bPreview}
{$sValMess}
{messages}
<form method="post" action="{url link='public.account.myitems.blog.edit' id=$aItem.id}" style="margin:0px;" onsubmit="{$sValJs}">
<div style="padding:30px;font-size:10pt;" class="color">
{messages block='EditBlog'}
<div style="padding-bottom:8px;">
	{language text="blog_title"} <span class="star">*</span>
	<div style="padding:5px;"><input type="text" name="val[title]" maxlength="150" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aItem.title|escape}" /></div>
</div>
<div style="padding-bottom:8px;">{language text="Mod_Tag.tags"}:<div style="padding:5px;">
        <input type="text" name="val[tags]" maxlength="80" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="{$aItem.tags|escape}" />
        <br />{language text="Mod_Tag.tags_details"}
   </div>
</div>
<div style="padding-bottom:8px;">
	{language text="content"} <span class="star">*</span>
		<span style="padding-left:10px;font-size:7pt;">
		  <a class="link_action" href="{$sUrl}#" onclick="popUp2('{url link='public.popup.htmlguide'}#html','500','500','yes','200','100'); return false;">[ {language text="html_guide"} ]</a>
		</span>
	<div style="padding:5px;">
	<textarea cols="50" rows="15" name="val[text]" id="maintext" onfocus="this.style.backgroundColor='#fff';" onblur="this.style.backgroundColor='#F6F6F6';">{$aItem.text}</textarea>
	{include file="$sMainTemplatePath/_blocks/smilies.html"}
	</div>
</div>
<div style="padding-bottom:8px;">
	<div style="padding:5px;"><input type="submit" name="act[edit]" value="{language text="submit_blog"} " style="cursor:pointer;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" /></div>
</div>
</div>
</form>
{else}
<div style="padding:30px;font-size:10pt;" class="color"><div class="border13"><div style="padding:5px;">
  {language text="thanks_for_editing_your_b"} <br />
  <div style="padding:5px;"> {language text="below_you_can_view_what_y_379"}
  <br /><br />
  <span style="font-size:7pt;">
     <a class="link_action" href="{url link='public.account.myitems.blog.edit' id=$aItem.id}">[ {language text="edit"} ]</a>
     &nbsp;
     <a class="link_action" href="{url link='public.account.submit.add-blog'}">[ {language text="submit_more"} ]</a>
     &nbsp;
     <a class="link_action" href="{url link='public.account.myitems.blog' delete=$aItem.id}" onclick="return sure('');" >[ {language text="delete"} ]</a>
  </span>
</div></div></div>
<br /><br />
<div style="font-size:8pt;">{$aItem.text|process_code}</div></div>
{/if}